package views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Spinner;

public class FoglalasMasolasView extends Composite {

	private Spinner spinner;
	private Button btnMsols;
	private Button btnMgse;

	public FoglalasMasolasView(Composite arg0, int arg1) {
		super(arg0, arg1);
		setLayout(new GridLayout(2, false));

		Label lblAKivlasztottFoglalst = new Label(this, SWT.NONE);
		lblAKivlasztottFoglalst.setLayoutData(new GridData(SWT.LEFT,
				SWT.CENTER, false, false, 2, 1));
		lblAKivlasztottFoglalst
				.setText("A kiv\u00E1lasztott foglal\u00E1st szeretn\u00E9m m\u00E1solni a k\u00F6vetkez\u0151");

		spinner = new Spinner(this, SWT.BORDER);
		spinner.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false,
				1, 1));
		spinner.setPageIncrement(1);
		spinner.setMaximum(7);
		spinner.setMinimum(1);

		Label lblNapra = new Label(this, SWT.NONE);
		lblNapra.setText("napra");

		btnMsols = new Button(this, SWT.NONE);
		btnMsols.setText("M\u00E1sol\u00E1s");

		btnMgse = new Button(this, SWT.NONE);
		btnMgse.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false,
				1, 1));
		btnMgse.setText("M\u00E9gse");
	}

	public Spinner getSpinner() {
		return spinner;
	}

	public Button getBtnMsols() {
		return btnMsols;
	}

	public Button getBtnMgse() {
		return btnMgse;
	}

}
